/**
*┌──────────────────────────────────────────────────────────────┐
*│　描    述：用户支付出入金记录                                                    
*│　作    者：gaotang                                              
*│　版    本：1.0   模板代码自动生成                                              
*│　创建时间：2019-02-27 16:50:41                            
*└──────────────────────────────────────────────────────────────┘
*┌──────────────────────────────────────────────────────────────┐
*│　命名空间: BestTrader.Cms.Models                                  
*│　类    名：UCAlipayInCash                                     
*└──────────────────────────────────────────────────────────────┘
*/
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BestTrader.Cms.Models
{
	/// <summary>
	/// gaotang
	/// 2019-02-27 16:50:41
	/// 用户支付出入金记录
	/// </summary>
	[Table("UCAlipayInCash")]
	public class UCAlipayInCash
	{
		/// <summary>
		/// 序号
		/// </summary>
		[Key]
		public Int32 Id {get;set;}

		/// <summary>
		/// 用户出入金记录
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 UCAlipayInCashId {get;set;}

		/// <summary>
		/// 二维码
		/// </summary>
		[MaxLength(128)]
		public String QRCode {get;set;}

		/// <summary>
		/// 云端生产的一个单号 可以通过这个单号来查询订单状态
		/// </summary>
		[MaxLength(64)]
		public String Order {get;set;}

		/// <summary>
		/// 返回data数据
		/// </summary>
		[MaxLength(16)]
		public String Data {get;set;}

		/// <summary>
		/// 返回付款金额(人民币)
		/// </summary>
		[MaxLength(32)]
		public String Money {get;set;}

		/// <summary>
		/// 订单时间(时间戳格式)  使用订单时间减去当前时间
		/// </summary>
		[MaxLength(32)]
		public String Times {get;set;}

		/// <summary>
		/// 订单状态  0正在付款   1 已付款
		/// </summary>
		[MaxLength(10)]
		public Int32? OrderStatus {get;set;}

		/// <summary>
		/// 代码标识(10088:成功返回数据;其他失败;)
		/// </summary>
		[MaxLength(32)]
		public String Text {get;set;}

        /// <summary>
        /// IP
        /// </summary>
        [MaxLength(16)]
        public String IP4 { get; set; }

        /// <summary>
        /// 状态(1表示成功返回二维码数据  0表示错误)
        /// </summary>
        [Required]
		[MaxLength(10)]
		public Int32 State {get;set;}

		/// <summary>
		/// 订单完成状态(0:等待付款；1:付款完成；2:订单超时；3:订单不存在或者超时被删除；4:token错误)
		/// </summary>
		[MaxLength(10)]
		public Int32? Code {get;set;}

		/// <summary>
		/// 备注
		/// </summary>
		[MaxLength(256)]
		public String Remark {get;set;}

		/// <summary>
		/// 添加人
		/// </summary>
		[Required]
		[MaxLength(10)]
		public Int32 AddManagerId {get;set;}

		/// <summary>
		/// 添加时间
		/// </summary>
		[Required]
		[MaxLength(23)]
		public DateTime AddTime {get;set;}

		/// <summary>
		/// 修改人
		/// </summary>
		[MaxLength(10)]
		public Int32? ModifyManagerId {get;set;}

		/// <summary>
		/// 修改时间
		/// </summary>
		[MaxLength(23)]
		public DateTime? ModifyTime {get;set;}

		/// <summary>
		/// 是否删除
		/// </summary>
		[Required]
		[MaxLength(1)]
		public Boolean IsDelete {get;set;}


	}
}
